package java44th.group.bean.admin.vo.region;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Aurhor: 11437
 * @DATE: 2022/10/11 19:32
 * @Description:
 * @Version 1.0
 */
@NoArgsConstructor
@Data
public class RegionVo {

    private int total;
    private int pages;
    private int limit;
    private int page;
    private List<ListDTO> list;

    @NoArgsConstructor
    @Data
    public static class ListDTO {
        private int id;
        private String name;
        private int type;
        private int code;
        private List<ChildrenDTO1> children;

        public ListDTO(int id, String name, int type, int code) {
            this.id = id;
            this.name = name;
            this.type = type;
            this.code = code;
        }

        @NoArgsConstructor
        @Data
        public static class ChildrenDTO1 {
            private int id;
            private String name;
            private int type;
            private int code;
            private List<ChildrenDTO2> children;

            public ChildrenDTO1(int id, String name, int type, int code) {
                this.id = id;
                this.name = name;
                this.type = type;
                this.code = code;
            }

            @AllArgsConstructor
            @NoArgsConstructor
            @Data
            public static class ChildrenDTO2 {
                private int id;
                private String name;
                private int type;
                private int code;
            }
        }
    }
}
